package com.yipao.db.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.yipao.db.domain.YipaoTopic;
import com.yipao.db.domain.YipaoTopicExample;

public interface TopicMapper {

    long countByExample(YipaoTopicExample example);


    int deleteByExample(YipaoTopicExample example);


    int deleteByPrimaryKey(Integer id);


    int insert(YipaoTopic record);


    int insertSelective(YipaoTopic record);


    YipaoTopic selectOneByExample(YipaoTopicExample example);


    YipaoTopic selectOneByExampleSelective(@Param("example") YipaoTopicExample example, @Param("selective") YipaoTopic.Column ... selective);


    YipaoTopic selectOneByExampleWithBLOBs(YipaoTopicExample example);


    List<YipaoTopic> selectByExampleSelective(@Param("example") YipaoTopicExample example, @Param("selective") YipaoTopic.Column ... selective);


    List<YipaoTopic> selectByExampleWithBLOBs(YipaoTopicExample example);


    List<YipaoTopic> selectByExample(YipaoTopicExample example);


    YipaoTopic selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") YipaoTopic.Column ... selective);


    YipaoTopic selectByPrimaryKey(Integer id);


    YipaoTopic selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);


    int updateByExampleSelective(@Param("record") YipaoTopic record, @Param("example") YipaoTopicExample example);


    int updateByExampleWithBLOBs(@Param("record") YipaoTopic record, @Param("example") YipaoTopicExample example);


    int updateByExample(@Param("record") YipaoTopic record, @Param("example") YipaoTopicExample example);


    int updateByPrimaryKeySelective(YipaoTopic record);


    int updateByPrimaryKeyWithBLOBs(YipaoTopic record);


    int updateByPrimaryKey(YipaoTopic record);


    int logicalDeleteByExample(@Param("example") YipaoTopicExample example);


    int logicalDeleteByPrimaryKey(Integer id);
}
